#include<malloc.h>
#include<string.h>

#define YES 1
#define NO  0
#define STL -1
#define MAX_CLASS 10

#define ALLOCMEB_LOANER(pSet) (DMeb *)(*pSet->SetMeb)
#define ALLOCMEB_ANODE(pSet)  (ANode *)(*pSet->SetMeb)

typedef struct{
	char   SetName[128];
	int    SetCnt;
	void **SetMeb;
} Set;

struct DMeb{
    int    ID;
    int    class;
	char   value[1024];
	struct DMeb   *NextMeb;
};

typedef struct DMeb DMeb;

struct ANode{
    int  AId;
    char AName[128];
	char AType[12];
	int  ALen;
	int  Aoffset;
	int  AisClass;
    int  APneed;
    int  (*pfunc)(int value);
	struct ANode *NextMeb;
	double Spv;
};

typedef struct ANode ANode;

Set* GettSet(Set *AtSet);
Set* GetaSet();
int SimComp(int value);
